import http from '../utils/http.js'

function getJoke(type,page,count){
  return http.fly.post('getJoke',{
      'type':type,
      'page':page,
      'count': count
  })
}

function getSingleJoke(sid){
  return http.fly.get('getSingleJoke', {
    'sid': sid
  })
}

module.exports = {
  getJoke: getJoke,
  getSingleJoke: getSingleJoke
}